using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace JW.Framework.IOC.Attributes
{
    /// <summary>
    /// 配置值注入注解，为属性注入配置的值，可用于做配置降级
    /// </summary>
    [AttributeUsage(AttributeTargets.Property)]
    public sealed class ValueAttribute : Attribute
    {
        public ValueAttribute(string configKey = "", object defaultValue = null)
        {
            this.Key = configKey;
            this.DefaultValue = defaultValue;
        }

        public string Key { get; }
        public object DefaultValue { get; }
    }
}
